package name.raynal.tool;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class SebOutputFile extends File {

	private static final long serialVersionUID = 890718458715454327L;
	private BufferedWriter writer;

	public SebOutputFile(String pathname) throws Throwable {
		super(pathname);
		init(new File(pathname));
	}

	private void init(File input) throws Throwable {
		writer = new BufferedWriter(new FileWriter(input));
	}

	public void writeLine(String input) throws IOException {
		writer.append(input);
		writer.newLine();
	}

	public void close() throws Throwable {
		writer.close();
	}
}
